const fs = require('fs');

fs.rename('./520fs.js','20200520fs.js',(err) => {
  if(err){
    throw err
  }else{
    console.log('rename success !!!')
  }
})
// ====================================
try{
  let res = fs.renameSync('./521write.js','./0521write.js');
  Console.log(res)
} catch(error){
  throw error
}